package com.bdzl.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * IllnessInformation entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "illness_information", catalog = "bdzl")
public class IllnessInformation  {

	// Fields

	private Integer id;
	private Illness illness;//重疾ID
	private String label;//标题 ：
	private String age;//年龄段 ： 18岁以前 。。
	private String content;//保险责任摘要
	private String information;//条款明细
	private Integer more;//理赔次数
	private String proportion;//系数
	private String dividend;//红利
	private Integer type;//类别	0 乘以保费  1乘以保额

	// Constructors

	/** default constructor */
	public IllnessInformation() {
	}

	/** full constructor */
	public IllnessInformation(Illness illness, String label, String age,
			String content, String information, Integer more,
			String proportion, String dividend, Integer type) {
		this.illness = illness;
		this.label = label;
		this.age = age;
		this.content = content;
		this.information = information;
		this.more = more;
		this.proportion = proportion;
		this.dividend = dividend;
		this.type = type;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "illness_id")
	public Illness getIllness() {
		return this.illness;
	}

	public void setIllness(Illness illness) {
		this.illness = illness;
	}

	@Column(name = "label")
	public String getLabel() {
		return this.label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	@Column(name = "age")
	public String getAge() {
		return this.age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	@Column(name = "content")
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "information")
	public String getInformation() {
		return this.information;
	}

	public void setInformation(String information) {
		this.information = information;
	}

	@Column(name = "more")
	public Integer getMore() {
		return this.more;
	}

	public void setMore(Integer more) {
		this.more = more;
	}

	@Column(name = "proportion")
	public String getProportion() {
		return this.proportion;
	}

	public void setProportion(String proportion) {
		this.proportion = proportion;
	}

	@Column(name = "dividend")
	public String getDividend() {
		return this.dividend;
	}

	public void setDividend(String dividend) {
		this.dividend = dividend;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}